package com.dao;

import com.pojo.TabAddress;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TabAddressDao {
    List<TabAddress> findMyAddressByUserId(@Param("begin") Integer begin, @Param("size") Integer size, @Param("contact") String contact,@Param("uid") Integer uid, @Param("address") String address);
    int getCount(@Param("contact") String contact,@Param("uid") Integer uid, @Param("address") String address);
    int addAddress(TabAddress tabAddress);
    int updateAddress(TabAddress tabAddress);
    int updateDefultAddress(Integer aid);
    int updateNotDefultAddress(Integer uid);
    int deleteAddress(Integer aid);
}
